<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><div class="header">
    <div class="left">
    </div>
    <div class="righttop">
        <?php if($_username) { ?>
        <!--已登录状态-->
        <div class="status">
            <span class="sp"><img src="<?php echo IMG_PATH;?>/images/head_log.png" width="10%"
                                  style="position:relative;top:5px; z-index:0;"/></span>
            <span class="sp" style="padding-left:1%;"><?php echo $_username;?></span>
            <span class="sp" style="padding-left:5%;">等级：<?php echo $_groupid;?></span>
            <span class="sp" style="padding-left:1%">积分：1980</span>
            <a href="index.php?m=member&c=index&a=logout"><span class="sp logout">退 出</span></a>
        </div>
        <?php } else { ?>
        <!--未登录状态-->
        <div class="status_no">
            <form method="post" action="index.php?m=member&c=index&a=login" id="login" autocomplete="off">
                <div class="login_user">
                    <input type="text" id="username" name="username"/>
                </div>
                <div class="login_pw">
                    <input type="password" id="password" name="password"/>
                </div>
                <input type="text" id="hidevalue" name="hidevalue" class="hidevalue" value="1"/>
                <input id="dosubmit" name="dosubmit" type="submit" class="sp typeface" style="margin-left:6%;margin-top:2px\9" value="登 录">
                <a href="index.php?m=member&c=index&a=register"><span id="register" class="sp typeface" style="margin-left:2%;">注 册</span></a>
            </form>
        </div>
        <?php } ?>
    </div>
    <div name="bu" class="rightbottom">
        <ul>
            <li><a href="index.php?m=content&c=index">
                <button id="home" class="home"></button>
            </a></li>
            <li><a href="index.php?m=content&c=index&a=product">
                <button id="product" class="product"></button>
            </a></li>
            <li>
                <button id="shop" class="shop"></button>
            </li>
            <li><a href="index.php?m=content&c=index&a=forum">
                <button id="forum" class="forum"></button>
            </a></li>
            <li><a href="index.php?m=content&c=index&a=support">
                <button id="support" class="support"></button>
            </a></li>
        </ul>
    </div>
</div>